
<%@ page import="user.Professor" %>
<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'professor.label', default: 'Professor')}" />
	<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>

<body>
	
<section id="list-professor" class="first">

	<table class="table table-bordered">
		<thead>
			<tr>
			
				<g:sortableColumn property="professorId" title="${message(code: 'professor.professorId.label', default: 'Professor Id')}" />
			
				<g:sortableColumn property="firstName" title="${message(code: 'professor.firstName.label', default: 'First Name')}" />
			
				<g:sortableColumn property="lastName" title="${message(code: 'professor.lastName.label', default: 'Last Name')}" />
			
				<g:sortableColumn property="documentId" title="${message(code: 'professor.documentId.label', default: 'Document Id')}" />
			
				<g:sortableColumn property="birthDate" title="${message(code: 'professor.birthDate.label', default: 'Birth Date')}" />
						
				<g:sortableColumn property="email" title="${message(code: 'professor.email.label', default: 'Email')}" />
						
			</tr>
		</thead>
		<tbody>
		<g:each in="${professorInstanceList}" status="i" var="professorInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
			
				<td><g:link action="show" id="${professorInstance.id}">${fieldValue(bean: professorInstance, field: "professorId")}</g:link></td>
			
				<td>${fieldValue(bean: professorInstance, field: "firstName")}</td>
			
				<td>${fieldValue(bean: professorInstance, field: "lastName")}</td>
					
				<td>${fieldValue(bean: professorInstance, field: "documentId")}</td>
			
				<td><g:formatDate date="${professorInstance.birthDate}" /></td>
			
				<td>${fieldValue(bean: professorInstance, field: "email")}</td>	
			
			</tr>
		</g:each>
		</tbody>
	</table>
	<div class="pagination">
		<bs:paginate total="${professorInstanceTotal}" />
	</div>
</section>

</body>

</html>
